package com.jiaming.employee.salary.bean.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author dragon
 * @create 2021-05-14 16:45
 */
@ApiModel(value = "员工工资信息")
@Data
public class Salary {
    @ApiModelProperty(value = "员工资质ID",required = true,example = "1")
    private Integer id;
    /* 工号 */
    @ApiModelProperty(value = "工号",required = true,example = "1234")
    @NotNull(message = "工号不能为空")
    private Integer job;
    @ApiModelProperty(value = "员工ID",required = true,example = "1")
    @NotNull(message = "员工id不能为空")
    private Integer empId;
    @ApiModelProperty(value = "部门ID",required = true,example = "1")
    @NotNull(message = "部门id不能为空")
    private Integer depId;
    /* 基本工资 */
    @ApiModelProperty(value = "基本工资",required = true,example = "15000")
    @JsonPropertyOrder("base_pay")
    private Integer basePay;
    /* 实发工资 */
    @ApiModelProperty(value = "实发工资",required = true,example = "14593")
    private Integer sum;
    /* 计薪天数 */
    @ApiModelProperty(value = "计薪天数",required = true,example = "22")
    @JsonPropertyOrder("paid_for_day")
    private Integer paidForDay;
    /* 实际计薪天数 */
    @ApiModelProperty(value = "员工际计薪天数",required = true,example = "22")
    @JsonPropertyOrder("new_paid_for_day")
    private Integer newPaidForDay;
}
